package com.wash.shoes.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@ApiModel(value = "店铺的品牌")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("os_brand")
public class BrandPo extends Model<BannerPo> {

    @ApiModelProperty(value = "品牌id")
    @TableId
    private String id;
    /**
     * 品牌名称
     */
    @TableField("brand_name")
    private String brandName;
    /**
     * 自营 1 自营 0 非自营
     */
    @TableField("self_operated")
    private Integer selfOperated;

    private String website;
    /**
     * 平台类型 抖音/美团
     */
    @TableField("platform_type")
    private String platformType;
    /**
     * 抖音来客id,美团id,小程序appid
     */
    @TableField("accountid")
    private String accountid;
    /**
     * 小程序appid
     */
    private String appid;
    /**
     * 抖音来客，美团、小程序appsecret
     */
    private String appsecret;
    /**
     * 密钥版本号
     */
    @TableField("appsecret_version")
    private String appSecretVersion;
    /**
     * 内部生活服务应用id
     */

    @TableField("inner_appid")
    private String innerAppid;
    /**
     * 内容生活服务应用appsecret
     */
    @TableField("inner_appsecret")
    private String innerAppSecret;
    /**
     * 公司名称
     */
    private String company;
    /**
     * 品牌地址
     */
    private String address;
    /**
     * 品牌图标
     */
    private String icon;
    /**
     * 品牌电话
     */
    private String phone;
    /**
     * 状态
     */
    @ApiModelProperty("状态0删除  1上架  2下架")
    private Integer status;
    /**
     * 备注
     */
    private String remark;

    @TableField(value = "create_by", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建者")
    private String createBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}